/* 底部内容区域样式 */
.bottom-content {
  display: flex;
  gap: 0;
  height: calc(100vh - 150px);
  overflow: hidden;
}

/* 左侧滑块面板样式 */
.slider-panel {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #f8f9fa;
  padding: 15px;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

/* 右侧图片面板样式 */
.image-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.control-item {
  margin-bottom: 15px;
}

.control-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.slider-value {
  text-align: right;
  margin-top: 5px;
  font-size: 14px;
  color: #666;
}

/* 生成按钮样式 */
.generate-button-container {
  margin-top: 20px;
}

/* 主预览图样式 */
.main-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccc;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f9f9f9;
  margin-bottom: 120px;
  max-height: calc(100% - 120px);
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.placeholder-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

.history-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 110px;
  background-color: rgba(248, 249, 250, 0.9);
  border-top: 1px solid #e0e0e0;
  /* 移除 z-index: 10; */
  display: flex;
  align-items: center;
}

.history-scroll-wrapper {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.history-grid {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px;
  height: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.history-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.arrow-button {
  width: 24px;
  height: 90px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  flex-shrink: 0;
  margin: 0 2px;
}

.arrow-button:hover {
  background-color: rgba(24, 160, 88, 0.1);
  border-color: #18a058;
}

.arrow-button svg {
  width: 16px;
  height: 16px;
  color: #666;
}

.arrow-button:hover svg {
  color: #18a058;
}

.arrow-visible {
  opacity: 1;
  visibility: visible;
}

.arrow-left {
  margin-right: 4px;
}

.arrow-right {
  margin-left: 4px;
}

/* Vue transition-group 动画效果 */
.history-item-enter-active {
  transition: all 0.3s ease;
}

.history-item-leave-active {
  transition: all 0.3s ease;
  position: absolute;
}

.history-item-enter-from {
  opacity: 0;
  transform: translateX(-20px);
}

.history-item-leave-to {
  opacity: 0;
  transform: translateX(20px);
}

.history-item-move {
  transition: transform 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.history-item {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s ease;
  height: 90px;
  flex-shrink: 0;
  width: auto;
}

.history-item:hover {
  border-color: #18a058;
}

.active-history {
  border-color: #18a058;
}

.history-image {
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

/* 头部样式 */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding-left: 100px; /* 抵消标题宽度，实现居中 */
}

.model-selector-wrapper {
  max-width: 200px;
}